//专门用来配置vue
//1webpack
//2.用来配置开发环境和生产环境

const config={
    devServer:{
        host:"127.0.0.1",
        port:"8080",
        proxy:{
            "/maoyanApi":{
                target:"http://m.maoyan.com",
                changeOrigin:true,
                pathRewrite:{
                   "^/maoyanApi":"" 
                }
            },
            "/boxofficeMaoyan":{
                target:"https://box.maoyan.com",
                changeOrigin:true,
                pathRewrite:{
                   "^/boxofficeMaoyan":"" 
                }
            }
        }
    }
}

module.exports=config